:: 设置目录
@set nuget_d=%~dp0nuget
@set input_d=%~dp0Messagepack
@set output_d=%~dp0output
@set temp_d=%~dp0temp
:: 设置输入输出
@set input=MessagePack.dll
@set output=%input%
:: 执行命令
@mkdir %output_d%
@mkdir %temp_d%
:: 设置参数
@set option_lib=/lib:%nuget_d% /lib:%input_d%
@set option_ops=/union /renameinternalized
@set options=%option_lib% %option_ops%
:: 生成最终dll
@ilrepack %options% ^
/out:%output_d%\%output% ^
%input_d%\%input% ^
%input_d%\Microsoft.Bcl.AsyncInterfaces.dll ^
%nuget_d%\System.Memory.dll ^
%nuget_d%\Microsoft.NET.StringTools.dll ^
%nuget_d%\System.Collections.Immutable.dll ^
%nuget_d%\System.Buffers.dll ^
%nuget_d%\System.Numerics.Vectors.dll ^
%nuget_d%\System.Reflection.Emit.dll ^
%nuget_d%\System.Reflection.Emit.Lightweight.dll ^
%nuget_d%\System.Threading.Tasks.Extensions.dll ^
%nuget_d%\System.Runtime.CompilerServices.Unsafe.dll
@pause